// 自动生成模板UmsIntegrationChangeHistory
package biz

import (
	"time"

	"github.com/go-kratos/kratos/v2/log"
)

// umsIntegrationChangeHistory表 结构体  UmsIntegrationChangeHistory
type UmsIntegrationChangeHistory struct {
	Id          *int       `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                             //id
	MemberId    *int       `json:"memberId" form:"memberId" gorm:"comment:member_id;column:member_id;size:19;"`              //member_id
	CreateTime  *time.Time `json:"createTime" form:"createTime" gorm:"comment:create_time;column:create_time;"`              //create_time
	ChangeCount *int       `json:"changeCount" form:"changeCount" gorm:"comment:变化的值;column:change_count;size:10;"`          //变化的值
	Note        *string    `json:"note" form:"note" gorm:"comment:备注;column:note;size:255;"`                                 //备注
	SourceTyoe  *bool      `json:"sourceTyoe" form:"sourceTyoe" gorm:"comment:来源[0->购物；1->管理员修改;2->活动];column:source_tyoe;"` //来源[0->购物；1->管理员修改;2->活动]
}

// TableName umsIntegrationChangeHistory表 UmsIntegrationChangeHistory自定义表名 ums_integration_change_history
func (UmsIntegrationChangeHistory) TableName() string {
	return "ums_integration_change_history"
}

type UmsIntegrationChangeHistoryRepo interface {
}

type UmsIntegrationChangeHistoryUsecase struct {
	repo UmsIntegrationChangeHistoryRepo
	log  *log.Helper
}

func NewUmsIntegrationChangeHistoryUsecase(repo GreeterRepo, logger log.Logger) *UmsIntegrationChangeHistoryUsecase {
	return &UmsIntegrationChangeHistoryUsecase{repo: repo, log: log.NewHelper(logger)}
}
